<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//请选择一款你喜欢的游戏，尝试声明游戏里的事物，如人物、道具等等，至少5个。
			let human1 = new Object();
						human1.id = 1;
						human1.name = "狄仁杰";
						human1.description = "王者荣耀英雄";
						
						human1.attack = function() {
							document.write(this.name + "打了一个炮车获得150金币");
							document.write("<br />")
							document.write(this.name + "使用了150金币买了回复水晶");
							document.write("<br />")
							document.write(this.name + "击杀了一名敌人");
							document.write("<br />")
							document.write(this.name + "击杀了五名敌人，获得了五杀");
							document.write("<br />")
							document.write(this.name + "推掉水晶，取得游戏胜利");
							document.write("<br />")
						}
						// document.write(human1, typeof human1);
									
									document.write(human1.description+name);
									document.write("<br />")
									human1.attack();
						
		</script>
	</body>
</html>
